package fr.upmc.aladyn.mainTest;

import fr.upmc.aladyn.transactionables.MyPoint;
/**

 * Test if the attributes of the point are restored and the attribute has been
 * correctly modified in the add2 method. There are instructions in the catch that processes
 * the exception.
 * @author Ritchie Nithoo
 * @author Jules Fabry
 * @version 1.0
 */
public class MainTest3 {

	public static void main(String[]args){
		System.out.println("------------------------------------");
		System.out.println("depart du troisieme test");
		MyPoint point=new MyPoint(2, 3);
		System.out.println("la valeur de x avant l'appel methode est: "+point.getX());
		System.out.println("la valeur de y avant l'appel methode est: "+point.getY());
		point.add2(2);
		System.out.println("la valeur de x apres l'appel methode est: "+point.getX());
		System.out.println("la valeur de y apres l'appel methode est: "+point.getY());
		System.out.println("ici apres la restoration il y a eu une modification de la valeur de y");
	}
}
